Rapid Application Development with AWS Amplify by Adrian Leung
Author:Adrian Leung [Adrian Leung]
Language: eng
Format: epub
Publisher: Packt Publishing
Published: 2021-07-15T16:00:00+00:00
Figure 5.2 â Autogenerated GraphQL operations and API code
Let's open the mutations.ts file to see the code that has been generated by the Amplify CLI based on the Post model that we just created:
Figure 5.3 â Mutations
The Amplify CLI generated three methods for us: createPost, updatePost, and deletePost. These are the Mutation GraphQL operations for creating, updating and deleting a post on the database. All we need to do is to call the autogenerated methods to access the backend, which saves us heaps of time.
Here, we will create a web app interface as an example for the user to create a blog post. Open the App.css file in the project directory and perform the following steps:
Import the Oswald font from Google Fonts (https://fonts.google.com/) as the typography for the web app:@import url("https://fonts.googleapis.com/css2?family=Oswald");
* {
font-family: "Oswald", serif;
}
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
The Mikado Method by Ola Ellnestam Daniel Brolund(25279)
Hello! Python by Anthony Briggs(24328)
Secrets of the JavaScript Ninja by John Resig Bear Bibeault(23419)
Kotlin in Action by Dmitry Jemerov(22500)
The Well-Grounded Java Developer by Benjamin J. Evans Martijn Verburg(21952)
Dependency Injection in .NET by Mark Seemann(21835)
OCA Java SE 8 Programmer I Certification Guide by Mala Gupta(20697)
Algorithms of the Intelligent Web by Haralambos Marmanis;Dmitry Babenko(19514)
Grails in Action by Glen Smith Peter Ledbrook(18591)
Adobe Camera Raw For Digital Photographers Only by Rob Sheppard(17028)
Sass and Compass in Action by Wynn Netherland Nathan Weizenbaum Chris Eppstein Brandon Mathis(15836)
Secrets of the JavaScript Ninja by John Resig & Bear Bibeault(13683)
Test-Driven iOS Development with Swift 4 by Dominik Hauser(11844)
Jquery UI in Action : Master the concepts Of Jquery UI: A Step By Step Approach by ANMOL GOYAL(11149)
A Developer's Guide to Building Resilient Cloud Applications with Azure by Hamida Rebai Trabelsi(10619)
Hit Refresh by Satya Nadella(9185)
The Kubernetes Operator Framework Book by Michael Dame(8560)
Exploring Deepfakes by Bryan Lyon and Matt Tora(8398)
Robo-Advisor with Python by Aki Ranin(8344)